package com.lobo.blog.service;

import com.github.pagehelper.PageInfo;
import com.lobo.blog.entity.Blog;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/10/4
 * @description:
 */
public interface AdminBlogService {

    Blog getBlogById(int blogId);

    PageInfo<Blog> getBlogs(int pageNum);

    int saveBlog(Blog blog);

    int updateBlog(int blogId, Blog blog);

    int deleteBlogById(int blogId);

    PageInfo<Blog> getBlogsByCondition(int pageNum, Blog blog);
}
